package ynu.edu.exception;

/**
 * 支付异常类
 */
public class PaymentException extends RuntimeException {
    
    private Integer code;
    
    public PaymentException(String message) {
        super(message);
        this.code = 500;
    }
    
    public PaymentException(Integer code, String message) {
        super(message);
        this.code = code;
    }
    
    public Integer getCode() {
        return code;
    }
} 